<?php

$request = str_replace(dirname($_SERVER['SCRIPT_NAME']), '', $_SERVER['REQUEST_URI']);

// Check for download or hook.
preg_match('')

  #split the path by '/'
  $params     = split("/", $request);

?>
